package com.study.myteach.桥接模式;

import com.study.myteach.桥接模式.pack1.AbsShape;
import com.study.myteach.桥接模式.pack1.Line;
import com.study.myteach.桥接模式.pack2.IDrawingEnv;
import com.study.myteach.桥接模式.pack2.LinuxDrawingEnv;

/**
 * @author lk
 * @date 2021/4/3 0003 15:40
 * @description:
 */
public class DemoTest {
    public static void main(String[] args) {
        IDrawingEnv env = new LinuxDrawingEnv();
        AbsShape shape = new Line();
        shape.setEnv(env);
        shape.draw();
    }
}
